<!--
@Author: 魏巍 <jswei>
@Date:   2018-08-10T21:28:39+08:00
@Email:  524314430@qq.com
@Filename: loading.vue
@Last modified by:   jswei
@Last modified time: 2018-08-28T04:32:07+08:00
@Copyright: free
-->

<template>
    <div>

    </div>
</template>

<script>
export default {
  props: {
    isShowLoading: {
      type: Boolean,
      default: false
    },
    text: {
      type: String,
      default: "加载中..."
    }
  },
  created() {
    if (this.isShowLoading) {
      this.$indicator.open({
        text: this.text,
        spinnerType: "snake"
      });
    }
  }
};
</script>

<style scoped>
</style>
